<div id="profile">
    <div id="ProfileHeader">
        <div class="FixedContainer row clearfix">
            <div class="info">
                <a class="ProfileImage" target="_blank" href="/images/avatar/avatar.jpg">
                	<%= image_tag "/images/avatar/avatar.jpg", :alt => @user.name%>
                </a>
                <div class="content">
                    <h1><%= @user.name %></h1>
                </div>
            </div>
        </div>
    </div>
    <div id="ContextBar" class="container sticky">
        <div class="FixedContainer">
            <ul class="links">
                <li>
                    <a class="selected" href="/user/account/<%= @user.id%>"><strong><%= @boards.count%></strong> 画板</a>
                </li>
                <li>
                    <a href="/user/pins/<%= @user.id%>"><strong><%= @user.pins.count%></strong> 采集</a>
                </li>
                <li>
                    <a href="/user/likes/<%= @user.id%>"><strong><%= @user.user_pins.count%></strong> 喜欢</a>
                </li>
            </ul>
			<ul class="follow"></ul>
			<div class="action">
				<% if logged_in? && current_user.id == @user.id%>
				<%= link_to "账号设置", {:controller => :user, :action => :setting}, :class => "Button13 Button WhiteButton Left Tab"%>
				<a id="RearrangeButton"></a>
				<% end%>
			</div>
        </div>
    </div>
	<div class="BoardLayout FixedContainer" style="opacity: 1; visibility: visible;">
		<div id="ColumnContainer">
			<ul class="sortable">
				<% @boards.each do |board|%>
					<li>
						<div class="pin pinBoard">
							<h3 class="serif">
								<%= link_to board.name, {:controller => :board, :action => :item, :id => board.id}%>
							</h3>
							<h4><%= board.pins.count%> 采集</h4>
							<div class="Board">
								<div class="followBoard">
									<%= link_to "编辑", {:controller => :board, :action => :edit, :id => board.id}, :class => "Button13 Button WhiteButton InlineButton"%>
								</div>
							</div>
						</div>
					</li>
				<% end%>
			</ul>
		</div>
	</div>
</div>

